﻿namespace BooDoo.UnitTests

import System
import System.Collections
import NUnit.Framework

import BooDoo as TestBase

[TestFixture]
class BooDooCommandLine:
"""Description of BooDooCommandLine."""
	
	target as TestBase.BooDooCommandLine
	
	[SetUp]
	def SetUp():
		target = TestBase.BooDooCommandLine()
	
	[Test]
	def ParseNoOptionsOneArgument():
		target.Parse(("test",))
		
		Assert.AreEqual(1, target.Target.Count, "Expected one argument")
		Assert.AreEqual("test", target.Target[0], "Expected target file to be 'test'")
		
	[Test, Ignore]
	def GetOptionDescriptionTest():
		getoption = target.GetType().GetMethod("GetOptionDescription", Reflection.BindingFlags.Instance or Reflection.BindingFlags.NonPublic, Type.DefaultBinder, (Useful.CommandLine.OptionAttribute,), (Reflection.ParameterModifier(1),))
		
		Assert.IsNotNull(getoption, "Unable to find method")
	
	[TearDown]
	def TearDown():
		target = null
